package com.tianji.medical.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 医生号源表
 * </p>
 *
 * @author 陈佳
 * @since 2024-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DoctorSchedule对象", description="医生号源表")
public class DoctorSchedule extends Model<DoctorSchedule> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "医生ID")
    private Long doctorId;

    @ApiModelProperty(value = "预约日期")
    private LocalDateTime date;

    @ApiModelProperty(value = "可用号源数量")
    private Integer availableSlots;

    @ApiModelProperty(value = "总号源数量")
    private Integer totalSlots;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
